unit serihata;

interface

uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
  Buttons, ExtCtrls;

type
  TGARHATA = class(TForm)
    OKBtn: TButton;
    ListBox1: TListBox;
    Label1: TLabel;
    Label2: TLabel;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormKeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  GARHATA: TGARHATA;

implementation

{$R *.DFM}

procedure TGARHATA.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  Action := caFree;
  GARHATA := nil;
end;

procedure TGARHATA.FormKeyPress(Sender: TObject; var Key: Char);
begin
  if key = #27 then
  begin
    key := #0;
    modalresult := mrcancel;
  end;

end;

end.
